const envVersion = __wxConfig.envVersion
//envVersion: 'develop',    //开发版
//envVersion: 'trial',          //体验版
//envVersion: 'release',     //正式版
let host;
if(envVersion === 'develop'){
  host = 'http://local.pikaqiu.vip/warehouse-manage'
}else if (envVersion === 'trial') {
  host = 'https://mini.pikaqiu.vip/warehouse-manage'
} else {
  host = 'https://mini.pikaqiu.vip/warehouse-manage'
}
const Api = {
  http: host,
  login: '/user/login',
  uploadImage: '/common/upload/image',
  getCompanyList: '/company/list',
  changeCompany: '/company/change',
  getCompanyInfo: '/company/info',
  saveCompanyInfo: '/company/save',
  getHomeCompanyInfo: '/company/home/info',
  getProductInfo: '/product/info',
  saveProduct: '/product/save',
  getProductGroupList: '/product/group/list',
  getProductLinkInfo: '/product/link/info',
  saveProductLink: '/product/link/save',
  getMaterialInfo: '/material/info',
  saveMaterial: '/material/save',
  getMaterialGroupList: '/material/group/list',
  getMaterialLinkInfo: '/material/link/info',
  saveMaterialLink: '/material/link/save',
  getCategoryList: '/category/list',
  saveCategory: '/category/save',
  getSupplierList: '/supplier/list',
  saveSupplier: '/supplier/save',
}

export {
  Api
}
